/**
 * Created by huatan-sj on 14-11-18.
 */

window.onload=function(){
	var file=document.querySelector("#file input[type='file']");
    var text=document.querySelector("#file input[type='text']");

    file.addEventListener("change",assign,false);
    function assign(){
        text.value=file.value;
    }


    var file1=document.querySelector("#file1 input[type='file']");
    var text1=document.querySelector("#file1 input[type='text']");

    file1.addEventListener("change",assign1,false);
    function assign1(){
        text1.value=file1.value;
    }

    var file2=document.querySelector("#file2 input[type='file']");
    var text2=document.querySelector("#file2 input[type='text']");

    file2.addEventListener("change",assign2,false);
    function assign2(){
        text2.value=file2.value;
    }
}




